package com.jingdianjichu.application.convert;

import com.jingdianjichu.application.dto.AuthPermissionDTO;
import com.jingdianjichu.application.dto.AuthRolePermissionDTO;
import com.jingdianjichu.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichu.auth.domain.entity.AuthRolePermissionBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 权限dto转换器
 *
 * @author: ChickenWing
 * @date: 2023/10/8
 */
@Mapper
public interface AuthRelePremissionDTOConverter {

    AuthRelePremissionDTOConverter INSTANCE = Mappers.getMapper(AuthRelePremissionDTOConverter.class);

    AuthRolePermissionBO convertDTOToBO(AuthRolePermissionDTO authRolePermissionDTO);

    AuthRolePermissionDTO convertBOToDTO(AuthRolePermissionBO authRolePermissionBO);

    List<AuthRolePermissionBO> convertBOToDTO(List<AuthRolePermissionBO> authRolePermissionBOList);

}
